import request from "@/utils/request";

//列表查询
export const queryPageApi=(data)=>{
  return request.get(`/roles`,{params:data})
}

//添加部门
export const addApi=(data)=>{
  return request.post(`/roles`,data)
}

//根据ID查询
export const queryById=(id)=>{
  return request.get(`/roles/${id}`)
}

//修改部门
export const updateApi=(data)=>{
  return request.put(`/roles`,data)
}

//删除部门
export const deleteApi=(id)=>{
  return request.delete(`/roles/${id}`)
}
